import {RouteRecordRaw} from "vue-router";
import Layout from "@/layouts/layout-index.vue";

// 用户管理
export default {
    path: '/article',
    name: 'Article',
    component: Layout,
    meta: {
        order: 2,
        title: "文章管理",
        icon: 'UserFilled',
    },
    children: [
        {
            path: '/article/list',
            name: 'ArticleList',
            component: () => import('@/views/article/ArticleList.vue'),
            meta: {
                title: "文章列表",
            },
        },
        {
            path: '/article/publish',
            name: 'ArticlePublish',
            component: () => import('@/views/article/ArticlePublish.vue'),
            meta: {
                title: "文章发布",
            },
        },
        {
            path: '/article/category',
            name: 'ArticleDetail',
            component: () => import('@/views/article/ArticleDetail.vue'),
            meta: {
                title: "文章详情",
            },
        },
        {
            path: '/article/comment',
            name: 'Comment',
            component: () => import('@/views/article/Comment.vue'),
            meta: {
                title: "评论管理",
            },
        },
    ],
} as RouteRecordRaw;